package com.atguigu.eduservice.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程
 * </p>
 *
 * @author testjava
 * @since 2021-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EduChapter对象", description="课程")
public class EduChapter implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "章节ID")
        @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

        @ApiModelProperty(value = "课程ID")
        private String courseId;

        @ApiModelProperty(value = "章节名称")
        private String title;

        @ApiModelProperty(value = "显示排序")
        private Integer sort;

        @TableField(fill = FieldFill.INSERT)
        @ApiModelProperty(value = "创建时间")
        private Date gmtCreate;

         @TableField(fill = FieldFill.INSERT_UPDATE)
        @ApiModelProperty(value = "更新时间")
        private Date gmtModified;


}
